package com.example.wu.radioclock;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by yls on 2018/11/6.
 */

public class MyReceiver extends BroadcastReceiver {
    private IOnUpdateListner listner;

    public MyReceiver(IOnUpdateListner listner) {
        this.listner = listner;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        //刷新MainActivity的界面
        listner.updateTime();

    }
}
